package cn.chencaiju.day06;

public class Shap {
	private Center Point;
	private String name="一个好看的形状"; 
	
	public Shap() {
		super();
		System.out.println("外部类被构造！");
	}
	public Shap(Center center,String name) {
		super();
		this.Point = center;
		this.name=name;
		System.out.println("外部类被构造！");
	}
	public static class Color{
		private int r=0;
		private int g=0;
		private int b=0;
		public Color(int r, int g, int b) {
			super();
			this.r = r;
			this.g = g;
			this.b = b;
			System.out.println("静态内部类被构造了！");
		}
		public int getR() {
			return r;
		}
		public void setR(int r) {
			this.r = r;
		}
		public int getG() {
			return g;
		}
		public void setG(int g) {
			this.g = g;
		}
		public int getB() {
			return b;
		}
		public void setB(int b) {
			this.b = b;
		}
		
		
	}
	public class Center {
		private double x;
	    private double y;
	    private String name="一个好看的形状的一个中心点！";
		public Center(double x, double y) {
			super();
			this.x = x;
			this.y = y;
			System.out.println("内部类被构造"+x+y+this.name);
			
		}
		public double getX() {
			return x;
		}
		public void setX(double x) {
			this.x = x;
		}
		public double getY() {
			return y;
		}
		public void setY(double y) {
			this.y = y;
		}
		
	}
	
	
}
